package datacrawl.test;
import us.codecraft.webmagic.Spider;
import us.codecraft.webmagic.pipeline.JsonFilePipeline;
/**
 * Hello world!
 *
 */
public class App  
{
	

    public static void main(String[] args) {
//        Spider.create(new GithubRepoPageProcessor()).addUrl("http://f10.eastmoney.com/f10_v2/CompanySurvey.aspx?code=sz002591#jbzl-0").thread(5).run();
//        System.out.println("hello");
    	Spider.create(new EasyMoneyPageProcessor("http://f10.eastmoney.com/f10_v2/BackOffice.aspx?timetip=1479265533600&command=RptF10AssetStatement&paramCode=00259102&paramNum=8&paramReportTime=All",""))
            .addPipeline(new JsonFilePipeline("/Users/lijunli/Projects/datacrawl-project/source/webmagic"))
    		.thread(5).run();
    	
    }
}
